package com.ebs.magicapidemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ebs.magicapidemo.entity.mysql.User;
import com.ebs.magicapidemo.mapper.mysql.UserMapper;
import com.ebs.magicapidemo.result.ResultResponse;
import com.ebs.magicapidemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Alexander Chang
 * @since 2023-01-10
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public ResultResponse getUserList() {
        List<User> userList = this.list();
        return ResultResponse.success(userList);
    }
}
